<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>图片廊</title>
</head>
<body>
    <div class="top">
        <div>
            <img src="../img/a.gif" alt="">
        </div>
        <div>
            <span>描述我</span>
        </div>
    </div>
    <div class="top">
        <div>
            <img src="../img/a.gif" alt="">
        </div>
        <div>
            <span>描述我</span>
        </div>
    </div>
    <div class="top">
        <div>
            <img src="../img/a.gif" alt="">
        </div>
        <div>
            <span>描述我</span>
        </div>
    </div>
    <div class="top" >
        <div>
            <img src="../img/a.gif" alt="">
        </div>
        <div>
            <span>描述我</span>
        </div>
    </div>
    <style>
        .top{
           display: inline-block;
        }
        body{
            text-align: center;
        }
    </style>
</body>
</html>